<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>修改</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="__LAYUI__/css/layui.css" media="all">
  <link rel="stylesheet" href="__CSS__/common/layui.form.css" media="all">
  <link rel="stylesheet" href="__STATIC__/plugs/font-awesome/css/font-awesome.min.css" media="all">

</head>
<body>
<div class="layui-container">
    <form class="layui-form layui-clear" action="{:url('duty/record/edit')}" method="post">

        <div class="layui-form-item">
            <!--第一行-->
            <label class="layui-form-label">事件&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
            <div class="layui-input-block">
                <select class="eventId" name="eventId" disabled lay-verify="required">
                    <option value=""></option>
                    {volist name="eventList" id="item"}
                    <option value="{$key}" {if $info.eventId==$key}selected{/if}>{$item}</option>
                    {/volist}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <!--第一行-->
            <label class="layui-form-label">预案&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
            <div class="layui-input-block">
                <select class="reservePlanId" name="reservePlanId" lay-verify="required" disabled>
                    <option value=""></option>
                    {volist name="planList" id="item"}
                    <option value="{$key}" {if $info.reservePlanId==$key}selected{/if}>{$item}</option>
                    {/volist}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline col-2">
                <label class="layui-form-label">救援类别&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                <div class="layui-input-inline">
                    <select class="typeId" name="typeId" lay-verify="required" disabled>
                        <option value="1">救灾</option>
                    </select>
                </div>
            </div>

            <div class="layui-inline col-2">
                <label class="layui-form-label">总耗时(天)&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                <div class="layui-input-inline">
                    <input type="text" name="timeConsuming" data-sets="timeConsuming" lay-verify="required" placeholder="0" autocomplete="off" class="layui-input"  value="{$info.timeConsuming}" />
                </div>
            </div>
        </div>


        <div class="layui-form-item">
            <div class="layui-inline col-2">
                <label class="layui-form-label">指挥人&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                <div class="layui-input-inline">
                    <input type="text" name="execStaffId" data-sets="execStaffId"  placeholder="指挥人" value='{$info.execStaffId}' autocomplete="off" class="layui-input" />
                </div>
            </div>

            <div class="layui-inline col-2">
                <label class="layui-form-label">救援时间&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                <div class="layui-input-inline">
                    <input type="text" name="execTime" data-sets="execTime" lay-verify="required" id="execTime" value="{$info.execTime}"  autocomplete="off" class="layui-input" />
                </div>
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">参与救援单位&nbsp;<i class="layui-icon arrow">　</i></label>
            <div class="layui-input-block">
                <textarea name="attendUnit" data-sets="attendUnit" class="layui-textarea" placeholder="请输入救援单位">{$info.attendUnit}</textarea>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">记录人&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
            <div class="layui-input-block">
                <select class="operationId" name="operationId" lay-verify="required">
                    <option value=""></option>
                    {volist name="userList" id="item"}
                    <option value="{$key}" {if $info.operationId==$key}selected{/if} >{$item}</option>
                    {/volist}
                </select>
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">文件&nbsp;<i class="layui-icon arrow">　</i></label>
            <div class="layui-input-block">
                <input class="layui-input upload-file" type="text" name="filePath"  value='{$info.filePath}'>
                <a class="layui-btn layui-btn-small btn-green" id="uploadfile" data-url="{:url('admin/api.upload/upload')}"><i class="fa fa-upload"></i></a>
            </div>
        </div>
        <input type="hidden"  name="id" value="{$info.id}">
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn btn-green" id="save" lay-submit lay-filter="save">保 存 </button>
                <button class="layui-btn layui-btn-primary" type="reset">重 置</button>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript" src="__LAYUI__/layui.js"></script>
    <script type="text/javascript" src="__JS__/duty/record.js"></script>
       

</body>
</html>           

